package com.tinem.platform.client.channel;

import com.alibaba.fastjson.JSONObject;
import com.tinem.platform.module.pojo.vo.channel.ClientChannelDetailsInfo;
import com.tinem.platform.module.pojo.vo.channel.ClientChannelSecurityInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @className LinkClient
 * @description TODO
 * @site 
 * @company 
 * @create 2020-07-08 19:48
 */
@FeignClient("platform-cloud-service-channel")
public interface ChannelClient {

    @PostMapping("/client.api")
    @ResponseBody
    ClientChannelDetailsInfo client(@RequestBody JSONObject req);

    @PostMapping("/clientSecurity.api")
    @ResponseBody
    ClientChannelSecurityInfo clientSecurity(@RequestBody JSONObject req);
}
